//
//  TimeSelectPickerView.h
//  Btpin
//
//  Created by Vic on 2019/3/13.
//  Copyright © 2019 Vic. All rights reserved.
//

#import <UIKit/UIKit.h>

@class TimeSelectPickerView;

@protocol TimeSelectPickerViewDelegate <NSObject>
@optional
- (void)timeSelectPickerViewCancel:(TimeSelectPickerView *_Nullable)timeSelectPickerView;
- (void)timeSelectPickerViewOK:(NSString *_Nullable)selectText timeSelectPickerView:(TimeSelectPickerView *_Nullable)timeSelectPickerView;
@end

NS_ASSUME_NONNULL_BEGIN

@interface TimeSelectPickerView : UIButton

@property (nonatomic, weak) id<TimeSelectPickerViewDelegate>delegate;

/**
 init
 
 @param target target
 @param time yyyy-MM-dd
 @return id
 */
- (instancetype)initWithTarget:(id)target time:(nullable NSString *)time timeSelectPickerType:(TimeSelectPickerType)type dateFormat:(nullable NSString *)dateFormat;

@end

NS_ASSUME_NONNULL_END
